package myJs.api

import myJs.myPkg.MyFetch
import org.scalajs.dom.window
import upickle.default._
import org.scalajs.macrotaskexecutor.MacrotaskExecutor.Implicits._

/**
 * Created by yz on 7/11/2022
 */
object UserApi {

  val baseUrl = s"${Api.apiUrl}/user"

  def getLimit = {
    val url = s"${baseUrl}/getLimit"
    MyFetch.getRnStr(url = s"${url}", headers = Map("Content-Type" -> "application/json")).map { str =>
      read[Boolean](str)
    }
  }



}
